#ifndef OPENFILEDIALOG
#define OPENFILEDIALOG

#include <QDialog>
#include <QComboBox>
#include <QLineEdit>
#include <QLabel>
#include <QPushButton>
#include <QWidget>

class OpenFileDialog : public QDialog
{
    Q_OBJECT

public:
    OpenFileDialog(QWidget *parent = 0);
    void createWidgets();
    void createConnections();

    static std::string getFolder() { return s_strFolder; }
    static std::string getFileName() { return s_strFilename; }

public slots:
    void slotFolderChanged();

protected:
    virtual void accept();

    QLabel *m_FolderLabel;
    QLabel *m_FilenameLabel;
    QComboBox *m_comboFolder;
    QLineEdit *m_fileEdit;
    QPushButton *m_btnOK;
    QPushButton *m_btnCancel;

    static std::string s_strFolder;
    static std::string s_strFilename;
};

#endif /// OPENFILEDIALOG